package com.design.model;

/**
 * 家庭影院外观
 *
 * @author lw
 * @date 2023/12/4 14:45
 **/
public class HomeTheaterFacade {

    private StereoSystem stereo;
    private Projector projector;
    private LightsControl lights;

    public HomeTheaterFacade() {
        stereo = new StereoSystem();
        projector = new Projector();
        lights = new LightsControl();
    }

    public void watchMovie() {
        System.out.println("正在准备看电影...");
        lights.turnOff();
        projector.turnOn();
        stereo.turnOn();
    }

    public void endMovie() {
        System.out.println("结束电影...");
        stereo.turnOff();
        projector.turnOff();
        lights.turnOn();
    }
}
